<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>首页</title>

<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
</head>

<body>
	<div align="center">
		<h1>XX小说网</h1>
	</div>

	<div align="center">
		<table>
			<tr>
				<td><a href="${pageContext.request.contextPath }">首页</a>
				</td>
				<td>分类</td>
				<td><a href="${pageContext.request.contextPath }/ClistRank">排行榜</a></td>
			</tr>
		</table>
	</div>
	<div align="center">
		<c:if test="${whologin==null }">
			<a href="${pageContext.request.contextPath }/RegisterUIServlet">注册</a>
			<a href="${pageContext.request.contextPath }/LoginUIServlet">登陆</a>
			<br />
		</c:if>
		<c:if test="${whologin!=null }">
                    欢迎您，${whologin.nickname }&nbsp;&nbsp;
       <a href="${pageContext.request.contextPath }/LogoutServlet">退出</a>
			<br />
		</c:if>
		<a href="${pageContext.request.contextPath }/SearchNovelUIServlet">搜小说</a>
		<a href="${pageContext.request.contextPath }/center.jsp">所有的个人中心</a><br />
	</div>
	<div align="center">----推荐区-----</div>
</body>
</html>
